{include file="public/head"}
<body>
    <div class="layui-card layadmin-header">
        {$breadcrumb|raw}
    </div>
    <div class="layui-fluid">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header">{$title|default=''}</div>
                    <div class="layui-card-body">
                        <form action="{:url('')}" class="layui-form" lay-filter="edit-form" method="post">
                            <div class="layui-form-item">
                                <label class="layui-form-label">用户名</label>
                                <div class="layui-input-block">
                                    <input type="text" name="post[username]" lay-verify="required" value="{$info.username|default=''}" autocomplete="off" placeholder="请输入用户名" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">昵称</label>
                                <div class="layui-input-block">
                                    <input type="text" name="post[nickname]"  value="{$info.nickname|default=''}" autocomplete="off" placeholder="请输入昵称" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">手机号</label>
                                <div class="layui-input-block">
                                    <input type="text" name="post[phone]"  value="{$info.phone|default=''}" lay-verify="phone" autocomplete="off" placeholder="请输入手机号" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">邮箱</label>
                                <div class="layui-input-block">
                                    <input type="text" name="post[email]"  value="{$info.email|default=''}" lay-verify="email" autocomplete="off" placeholder="请输入邮箱" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">密码</label>
                                <div class="layui-input-block">
                                    <input type="text" name="post[password]"  value=""  autocomplete="off" placeholder="请输入密码，不修改则不填写" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">确认密码</label>
                                <div class="layui-input-block">
                                    <input type="text" name="post[confirm_password]"  value="" autocomplete="off" placeholder="请重复输入密码，不修改则不填写" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <label class="layui-form-label">上级管理员</label>
                                    <div class="layui-input-block">
                                        <input type="hidden" name="post[parent_id]" value="{$parent_info.id|default=0}">
                                        <span class="layui-">{$parent_info.username|default='无'}</span>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">状态</label>
                                <div class="layui-input-block">
                                    <input type="checkbox" name="post[status]" value="1" lay-skin="switch" lay-filter="status" lay-text="正常|禁用"
                                           {notempty name="info"}
                                           {eq name="$info.status" value="1"}
                                           checked
                                           {/eq}
                                        {else/}
                                        checked
                                        {/notempty}
                                    >
                                </div>
                            </div>
                            <input type="hidden" name="post[id]" value="{$info.id|default=0}">
                            <div class="layui-form-item layui-layout-admin">
                                <div class="layui-input-block">
                                    <div class="layui-footer" style="left: 0;">
                                        <button class="layui-btn" lay-submit="" lay-filter="submit-form">立即提交</button>
                                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
    {include file="public/script"}
</body>
</html>